jQuery(function($){
    var liH = $('#list').children().eq(0).height();
    var ulH = $('#list').height();
    var ulT = $('#list').position().top;
    var count = 0;
    var id = setInterval(function() {
        count -= liH;
        $("#list").animate({
            top: count + "px"
        }, 500, function() {
            if(list.style.top == -(ulH - liH) + 'px') {
                count = 0;
                $("#list").css("top", "0px");
            }
        })
    }, 1000);
    $.ajax({
        type:'GET',
        url:"../json/index.json",
        dataType:"json",
        success:function(data){
            var str = template('mban',{arr:data});
            $('.mb').html(str);
        }
    })
});
